#!/bin/bash

USER_NAME=$1
echo "USER_NAME: $USER_NAME"

adduser ${USER_NAME}
echo "12345678" | sudo passwd --stdin ${USER_NAME}
mkdir /data/${USER_NAME}
chown -R ${USER_NAME}:${USER_NAME} /data/${USER_NAME}
usermod -d /data/${USER_NAME} ${USER_NAME}
